<?php
defined('APP_PATH')
	|| define('APP_PATH', realpath(dirname(__FILE__) . '/application'));

defined('APP_ENV')
	|| define('APP_ENV',
		(getenv('APP_ENV') ? getenv('APP_ENV') : 'developer'));
		
set_include_path(implode(PATH_SEPARATOR, array(
				dirname(__FILE__) . '/library',
				get_include_path(),)));
				

//Path
define('PUBLIC_PATH', realpath(dirname(__FILE__) . '/public'));
define('SKIN_PATH', realpath(dirname(__FILE__) . '/skin'));
define('CAPTCHA_PATH', PUBLIC_PATH . '/captcha');
define('ADMIN_PATH', APP_PATH . '/design/admin');
define('FONTEND_PATH', APP_PATH . '/design/frontend');
define('FONTEND_TEMPLATE', FONTEND_PATH . '/default/template');
define('ADMIN_TEMPLATE', ADMIN_PATH . '/default/template');
define('SCRIPT_PATH', realpath(dirname(__FILE__) ."/js"));
//Url path
define('WEB_ROOT_URL', '/cmath');
define('APP_URL', WEB_ROOT_URL.'/application');
define('CAPTCHA_URL', WEB_ROOT_URL.'/public/captcha');
define('SKIN_URL', WEB_ROOT_URL.'/skin');
